<%@ page import="com.zjh.pojo.Book" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/27
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    response.setContentType("UTF-8");
    String name = request.getParameter("username");
    String password = request.getParameter("password");
    User userInfo = (User) session.getAttribute("userInfo");
    if (userInfo.getUsername().equals(name) && userInfo.getPassword().equals(password)) {
        out.print("登录成功");
    } else {
        out.print("用户名或密码错误");
    }
%>
</body>
</html>
